﻿using System;
using System.Collections.Generic;

namespace DbToPbiSvc
{
    public class QueryConfig
    {
        public Queries Queries { get; set; }
    }

    public class Queries
    {
        public List<Query> Query { get; set; }
    }

    public class Query
    {
        public string Name { get; set; }
        public string QueryPath { get; set; }
        public Int32 RefreshInterval { get; set; }
        public string DatabaseConnectionString { get; set; }
        public string ConnectTo { get; set; }
        public EventHub EventHub { get; set; }
        public PowerBiApi PowerBiApi { get; set; }
    }

    public class EventHub
    {
        public string ConnectionString { get; set; }
        public string QueueName { get; set; }
    }

    public class PowerBiApi
    {
        public bool ClearRecordset { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public string ClientId { get; set; }
        public string DatasetId { get; set; }
        public string TableName { get; set; }
    }


}
